
<table style="width:800px;margin:auto" border="1">
  <caption>
    DANH SÁCH USER
  </caption>
    <br/>
    
  <tr>
    <th width="58" scope="col">STT</th>
    <th width="219" scope="col">Id</th>
    <th width="101" scope="col">Message</th>
    <th width="140" scope="col">Time</th>
  </tr>
<?php
  $sql='select * from `log`';
  
  $rs=mysqli_query($conn,$sql);
  $stt=1;
  
  while($r=mysqli_fetch_assoc($rs))
  {
?>
  <tr>
    <td align="center"><?php echo $stt++?></td>
    <td align="left">&nbsp;<?php echo $r['user_id']?></td>
    <td align="center">&nbsp;<?php echo $r['mess']?></td>
    <td align="center">&nbsp;<?php echo $r['time']?></td>
  </tr>
<?php
  }
?>
  <tr>
    <td colspan="6" align="center"><label>
      <input onClick="window.location='?mod=user_add'" type="button" name="user_add" id="user_add" value="Add New User">
    </label></td>
  </tr>
</table>
